<template>
    <div class="" v-if="processShow">
        <div class="process-main">
            <div class="header-top">
                <a class="return pub-close" @click="hide"></a>
                <span v-text="title"></span>
            </div>
            <div class="process-conn" v-if="dl">
                <ul>
                    <li>
                        <div class="pro-left pro-left-bj"><span class="hover">1</span></div>
                        <div class="pro-right">
                            <i class="prico"></i>
                            <h2>选择代练套餐付款</h2>
                        </div>
                    </li>
                    <li>
                        <div class="pro-left"><span :class="isTo==2?'hover':''">2</span></div>
                        <div class="pro-right">
                            <i class="prico"></i>
                            <h2>填写游戏帐号信息</h2>
                        </div>
                    </li>
                    <li class="bacder">
                        <div class="pro-left"><span>3</span></div>
                        <div class="pro-right">
                            <i class="prico"></i>
                            <h2>代练完成，给打手打款</h2>
                        </div>
                    </li>

                </ul>
            </div>
            <div class="process-conn" v-else>
                <ul>
                    <li>
                        <div class="pro-left pro-left-bj"><span class="hover">1</span></div>
                        <div class="pro-right">
                            <i class="prico"></i>
                            <h2>发布陪练订单</h2>
                        </div>
                    </li>
                    <li>
                        <div class="pro-left"><span>2</span></div>
                        <div class="pro-right">
                            <i class="prico"></i>
                            <h2>等待玩家下单</h2>
                        </div>
                    </li>
                    <li>
                        <div class="pro-left"><span>3</span></div>
                        <div class="pro-right">
                            <i class="prico"></i>
                            <h2>玩家付款后，与玩家组团开战</h2>
                        </div>
                    </li>

                    <li class="bacder">
                        <div class="pro-left"><span>4</span></div>
                        <div class="pro-right" id="seller-help5">
                            <i class="prico"></i>
                            <h2>陪练完成后，请联系玩家</h2>
                        </div>
                    </li>

                </ul>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: '',
        data () {
            return {
                processShow: false,
                dl: false,
                title: ''
            }
        },
        props:['isTo'],
        created(){
            var self = this;
            self.$bus.on('proShow', s => {
                self.processShow = s;
            });
            self.$bus.on('proText', pro => {
                if (pro == '代练流程') {
                    self.title = pro;
                    self.dl = true;
                } else if (pro == '陪练流程') {
                    self.title = pro;
                    self.dl = false;
                }
            })
        },
        mounted(){

        },
        destroyed(){
            this.$bus.emit('proShow', false);
        },
        methods: {
            hide(){
                this.processShow = false;
            }
        }
    }
</script>

<style src="css/dlAll/dl-cxy.css"></style>
<style scoped>

</style>
